<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基本信息</title>
    <style>
        .add-role{
            width: 622px;
            height: 554px;
            position: absolute;
            top: 263px;
            left: 648px;
            background-color: #FFFFFF;
            border-radius: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #000000;
        }
        .role-column{
            width: 401px;
            display: flex;
            flex-direction: row;
            align-items: center;
            font-size: 22px;
            margin-bottom: 42px;
        }
        .add-input{
            width: 296px;
            height: 50px;
            background-color: #EDEDED;
            border-radius: 17.5px;
            padding: 0 10px 0 20px;
            border: #EDEDED 0 solid;
            outline: 0;
            color: #F58220;
            font-size: 22px;
        }
        .sex{
            width: 296px;
            height: 50px;
            display: flex;
            flex-direction: row;
            align-items: center;
        }
        .sex-radio{
            width: 20px;
            height: 20px;
            border: #999999 1px solid;
            border-radius: 10px;
            margin-right: 14px;
        }
        .sex-selected{
            border: #f4ec2f 1px solid;
            background-color: #f4ec2f; 
        }
        .left-bottom{
            width: 250px;
            height: 195px;
            position: absolute;
            left: 0;
            bottom: 0;
        }
    </style>
    <link rel="stylesheet" href="css/base.css">
</head>
<body>
    <div class="heard">
        <img src="img/woniu_logo@2x.png" style="width: 307px;height: 68px;margin-left: 8px;margin-top: 63px;">
        <div class="right-top">
            <div class="heard-item">
                <img src="img/woniu_self@2x.png" style="width: 37px;height: 37px;margin-bottom: 14px;">
                <div>个人主页</div>
            </div>
            <div class="heard-item" onclick="showNavigation()">
                <img src="img/woniu_caidan@2x.png" style="width: 31px;height: 37px;margin-bottom: 14px;">
                <div>功能导航</div>
            </div>
        </div>
    </div>
    <div class="navigation" id="navigation" onmouseleave="moveOutNavigation()">
        <div class="navigation-top"></div>
        <div class="navigation-content">
            <div class="navigation-item">
                <img src="img/baogao@2x.png" style="width: 23px;height: 25px;margin-right: 35px;">
                <div>调研报告</div>
            </div>
            <div class="navigation-heng"></div>
            <div class="navigation-item">
                <img src="img/tuichu@2x.png" style="width: 23px;height: 25px;margin-right: 35px;">
                <div>退出登录</div>
            </div>
        </div>
    </div>
    <div class="foot">Copyright © 2021 All rights reserved.蜗牛渼家 用户需求调研与分析系统</div>
    <div class="add-role" id="addRole">
        <div style="margin-top: 71px;font-size: 30px;margin-bottom: 72px;">角色调研</div>
        <div class="role-column">
            <div style="width: 105px;">家庭角色:</div>
            <input type="text" class="add-input" placeholder="外婆">
        </div>
        <div class="role-column">
            <div style="width: 105px;">年龄端:</div>
            <input type="text" class="add-input" placeholder="老年（69岁以上）">
        </div>
        <div class="role-column">
            <div style="width: 105px;align-self: flex-start;">性别:</div>
            <div class="sex">
                <div class="sex-radio sex-selected"></div>
                <span style="margin-right: 36px;">男</span>
                <div class="sex-radio"></div>
                <span>女</span>
            </div>
        </div>
        <div>
            <span style="font-size: 22px;color: #FFFFFF;padding: 7px 40px;background-color: #F58220;border-radius: 7px;" onclick="sureAddRole()">确定</span>
        </div>
    </div>
    <div class="left-bottom">
        <img src="img/woniu_tuoyuan_2.png" style="width: 100%;height: 100%;">
    </div>
</body>
<script>
    let navigationShow = true
    function showNavigation() {
        if (navigationShow == true) {
            document.getElementById("navigation").style.display = "block";
            navigationShow = false
        } else {
            document.getElementById("navigation").style.display = "none";
            navigationShow = true
        }
    }
    function moveOutNavigation() {
        document.getElementById("navigation").style.display = "none";
        navigationShow = true
    }
</script>
</html>